package com.javasm.service;

import com.javasm.entity.AdminMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 0.1
 * @className: MenuService
 * @description:
 * @author: gfs
 * @date: 2025/6/20 11:06
 * @since: jdk17
 */
public interface MenuService {

    //菜单列表条件查询
    List<AdminMenu> listMenuByCondition(AdminMenu inputMenu, Integer page, Integer pageSize);

    //统计当次查询的总记录数
    Integer countMenuByCondition(AdminMenu inputMenu);
    //查询一级菜单列表
    List<AdminMenu> listMenuLevel1();

    //查询菜单图标
    List<String> listMenuIcon();

    //添加菜单信息
    Integer insertMenu(AdminMenu inputMenu);

    //根据编号查询菜单
    AdminMenu getById(Long mid);

    //修改菜单数据
    Integer updateMenu(AdminMenu inputMenu);

    //单条删除
    Integer deleteMenu(Long mid);

    //删除多条
    Integer deleteMenuMultiple(List<Long> listMid);


    //查询菜单列表
    List<AdminMenu> ListAllMenuWithSubMenu();
    //查当前用户的菜单编号
    List<Long> ListUserMenuId(Long uid);


}
